home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 279 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.3 KB

  1. Path: alterdial.uu.net!not-for-mail
  2. From: rex@aussie.com
  3. Newsgroups: comp.std.c
  4. Subject: Re: size_t
  5. Date: 2 Feb 1996 03:59:46 GMT
  6. Message-ID: <4es27i$hd5@alterdial.UU.NET>
  7. References: <4eo3sc$l14@info1.sdrc.com>
  8. NNTP-Posting-Host: pool058.max1.ffx1.va.dynip.alter.net
  9. X-Newsreader: SPRY News 3.03 (SPRY, Inc.)
  10.  
  11. >   larry.jones@sdrc.com (Larry Jones) writes:
  12. >  In article <4eiua2$9u@engnews1.Eng.Sun.COM>, clamage@Eng.Sun.COM (Steve 
  13. Clamage) writes:
  14. >  > I have always thought that type size_t must be defined as one of
  15. >  > the standard unsigned integer types: unsigned [char | short | int | 
  16. long].
  17. >  > I don't find wording in the ISO standard requiring that, however.
  18. >  > Sections 7.1.6 and 6.3.4 say it is an "unsigned integral type", a term
  19. >  > I don't find defined. "Integer type" is defined, but not "integral 
  20. type".
  21. >  
  22. >  In response to a Defect Report, the Committee noted that the terms
  23. >  ``integer type'' and ``integral type'' are used interchangeably and
  24. >  should be considered synonymous.  I believe they also expressed an
  25. >  intent to eliminate the inconsistency in the next revision.  The
  26. >  response to another Defect Report noted that the list of integer types
  27. >  is exhaustive and may not be extended, thus size_t must indeed be one of
  28. >  the standard types.
  29. >  ----
  30. >  Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
  31. >  larry.jones@sdrc.com
  32. >  I don't think that question was very hypothetical at all. -- Calvin
  33. >  
  34. >>>>
  35.  
  36. Larry, I recall a discussion in committee re mapping pointers to some 
  37. integral type. Somewhere we require that I believe. IBM's AS400 came up as it 
  38. has (I think) 128-bit addresses but no integer type that big. I thought we 
  39. allowed magic integer types for some things but I may be misremembering.
  40.  
  41.  
  42.  
  43. Rex
  44.  
  45. ----------------------------------------------------------------------------
  46.     +1 703 860-0091 |       Rex Jaeschke          | C and C++ Seminars
  47. FAX +1 703 860-3008 |    2051 Swans Neck Way      | and Consulting
  48.      rex@aussie.com | Reston, Virginia 22091, USA | 
  49. ----------------------------------------------------------------------------
  50. Chair of X3J11 (ANSI C) and participant in SC22/WG14 (ISO C). Columnist for 
  51. NT Developer, VC++ Professional, and Enterprise NT.
  52. ----------------------------------------------------------------------------
  53.  
  54.